<%-include('../../public/header.html')%>
    <div>增加导航</div>
    <form action="/admin/nav/doEdit" method="post">
        <input type="hidden" name="id" value="<%=_id%>">
        <ul>
            <li>
                <span>导航名称</span>
                <input type="text" name="navname" value="<%=navname%>">
            </li>
            <li>
                <span>导航链接地址</span>
                <input type="text" name="link" value="<%=link%>">
            </li>
            <li>
                <span>导航位置</span>
                <select name="place">
                    <option value=1 <%if(place==1){%>selected<%}%>>上面</option>
                    <option value=2 <%if(place==2){%>selected<%}%>>中间</option>
                    <option value=3 <%if(place==3){%>selected<%}%>>下面</option>
                </select>
            </li>
            <li>
                <span>新窗口打开</span>
                <select name="opennew">
                    <option value=1 <%if(opennew==1){%>selected<%}%>>是</option>
                    <option value=0 <%if(opennew==0){%>selected<%}%>>否</option>
                </select>
            </li>
            <li>
                <span>排序</span>
                <input type="text" name="sort" value="<%=sort%>">
            </li>
            <li>
                <span>状态</span>
                <label for="x">显示</label>
                <input type="radio" id="x" name="status" value=1  <%if(status==1){%> checked <%}%> >
                <label for="nx">隐藏</label>
                <input type="radio" id="nx" name="status" value=0 <%if(status==0){%> checked <%}%> >
            </li>
            <li>
                <button type="submit">修改</button>
            </li>
        </ul>
    </form>    
</body>
</html>